package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"good/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/good/upload", &controllers.GoodController{}, "post:Upload")
	beego.Router("/good/add", &controllers.GoodController{}, "post:Add")
	beego.Router("/good/list", &controllers.GoodController{}, "get:List")
	beego.Router("/good/del", &controllers.GoodController{}, "get:Del")
	beego.Router("/good/info", &controllers.GoodController{}, "get:Info")
}
